<template>
	<div id="app">
		<router-view />
	</div>
</template>

<script>
import MqttUtils from './js/common/mqtt-utils';
export default {
	created() {
		if (sessionStorage.getItem('state')) {
			this.$store.replaceState(Object.assign({}, this.$store.state,
				JSON.parse(sessionStorage.getItem('state'))))
		}
		window.addEventListener('beforeunload', () => {
			sessionStorage.setItem('state', JSON.stringify(this.$store.state))
		})
		// MqttUtils.handleCon();
		// MqttUtils.init();

	}
};
</script>

<style>
@import url("assets/css/common.css");

body,
html {
	margin: 0px;
	padding: 0px;
	min-width: 1260px;
	overflow: scroll;
}

::-webkit-scrollbar {
	width: 0 !important;
}

::-webkit-scrollbar {
	width: 0 !important;
	height: 0 !important;
}

.btn-click:active {
	opacity: 0.5;
	transform: scale(0.95);
}

button:active {
	opacity: 0.5;
	transform: scale(0.95);
}
</style>
